﻿using Consul;
using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Infrastructure.Structs
{
    public class AddressServiceByConsulItem
    {
        public AddressServiceByConsulItem()
        {
            this.Addresss = new List<AddressServiceByConsulItemAddress>();
            this.Options = new QueryOptions
            {
                WaitTime = TimeSpan.FromMilliseconds(6)
            };
        }

        public string ModuleCode { get; set; }

        public QueryOptions Options { get; set; }

        public int Index { get; set; }

        public DateTime? LastGetTime { get; set; }

        public List<AddressServiceByConsulItemAddress> Addresss { get; set; }
    }
}
